package org.se.scut.pinterest.mina.codec.coder.cxt;

import org.apache.mina.core.buffer.IoBuffer;

public class PictureUploadContext extends BaseContext {
	
	public PictureUploadContext(){
		super(IoBuffer.allocate(2048).setAutoExpand(true));
	}

    private String fileName;
	
	private String overView;
	
	private String userID;
	
	private String pictureTypeID;
	
	private String ablumID;
	
	private String fileLength;
	
	private byte[] content ;
	
	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getOverView() {
		return overView;
	}

	public void setOverView(String overView) {
		this.overView = overView;
	}

	public String getUserID() {
		return userID;
	}

	public void setUserID(String userID) {
		this.userID = userID;
	}

	public String getPictureTypeID() {
		return pictureTypeID;
	}

	public void setPictureTypeID(String pictureTypeID) {
		this.pictureTypeID = pictureTypeID;
	}

	public String getFileLength() {
		return fileLength;
	}

	public void setFileLength(String fileLength) {
		this.fileLength = fileLength;
	}

	@Override
	public void resetData(){
		
		innerBuffer.clear();
		fileName = "";
		overView = "";
		userID = "";
		pictureTypeID = "";
		fileLength = "";
		matchCount = 0;
		lineNumber = 0;
		content = new byte[0];
		
	}

	public byte[] getContent() {
		return content;
	}

	public void setContent(byte[] content) {
		this.content = content;
	}

	public String getAblumID() {
		return ablumID;
	}

	public void setAblumID(String ablumID) {
		this.ablumID = ablumID;
	}
	
	
}
